Summary of Transfer Mode Operation
Figure 55
shows how all the parts of the transfer mode structure work together when a color is drawn.
-
The source color is converted to the transfer mode's color space, if they are not already the same. Each component of the source color is then compared to the acceptable range of source colors, modified if appropriate by the values of the transfer mode flags. The resulting source components are then multiplied by the source matrix to yield the corrected source components for the transfer mode operation.
-
The destination color is converted to the transfer mode's color space, if necessary. Each component of the destination color is then compared to the acceptable range of destination colors, modified if appropriate by the values of the transfer mode flags. The resulting destination components are then multiplied by the device matrix to yield the corrected destination components for the transfer mode operation.
-
The pairs of source and destination components are each combined, according to the selected component mode, and the value of the operand if the component mode takes one. (Source and destination values for a component are swapped before combining if the
gxReverseComponent
component flag is set.)
-
The components that result from the transfer mode operation are each multiplied by the results matrix to yield the corrected result components (and then ANDed with
gxColorValue1
(
0xFFFF
) if the
gxOverResultComponent
flag is set for that component.) Each component is then pinned, if necessary, to the acceptable range of result colors. Finally, the result color is converted to the color space of the view device, and the color is drawn.
Figure 55
Summary of transfer
mode
operation
© 1999 Apple Computer, Inc.| Previous | Chapter Contents | Chapter Top | Next |